#
# Package.
#

package iSOCK::Model::Bugzilla;

#
# Base.
#

use Moose;
use namespace::autoclean;

BEGIN { extends 'Catalyst::Model' }

__PACKAGE__->meta->make_immutable;

#
# Subs.
#

sub class {
  my ( $self, $type ) = @_;
  
  return unless $type;
  
  if ( $type =~ /^ ( analog | digital | ip | memory ) $/x ) {
    return 'Bugzilla::' . ucfirst $type;
  }
  
  return;
}

#
# True.
#

1;
